<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script type="text/javascript">
    //非柯里化
    function sum(a, b, c) {
        return a + b + c
    }

    console.log(sum(1, 2, 3))

    //柯里化
    function sum1(a) {
        return (b) => {
            return (c) => {
                return a + b + c
            }
        }
    }

    console.log(sum1(1)(2)(3))
</script>
</body>
</html>